var HumidityTypes = {

    html: function (HumidityTypes) {

        var html="<div class=\"HumidityTypesDiv\" id='HumidityTypesDiv'>";
        var zhibiaoSelectHtml="";
        if(HumidityTypes!=null&&typeof(HumidityTypes)!='underfined'&&HumidityTypes.length>0){
            zhibiaoSelectHtml="<div class=\"pluginsSingleRows layui-form-item \"><label class='layui-form-label'>类型:</label><div class='layui-input-block'><select id='zhibiaoSelect'>";
        }else{
            zhibiaoSelectHtml="<div class=\"pluginsSingleRows layui-form-item \" style=\"display:none;\"><label class='layui-form-label'>类型:</label><div class='layui-input-block'><select id='zhibiaoSelect'>";
        }

            for(var i=0;i<HumidityTypes.length;i++){
                zhibiaoSelectHtml+="<option value='"+(i+1)+"' ";
                if(i==0){
                    zhibiaoSelectHtml+="selected=\"selected\"";
                }
                zhibiaoSelectHtml+=" >"+HumidityTypes[i]+"</option>";
            }

        zhibiaoSelectHtml+="</select></div></div>";
        html+=zhibiaoSelectHtml;

        html+="</div>";
        return html;
    },
    getData: function () {
        // Global.postData.paramsMap = 'RT_SPI30';
        var val=$('#HumidityTypesDiv option:selected') .val();
        if(val !=null && val !="underfined"){
            // Global.postData.paramsMap = $('#HumidityTypesDiv option:selected') .val();
        }

    },

};
  
  
  